package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 退货产品表
 * </p>
 *
 * @author sy
 * @since 2023-12-06
 */
@Getter
@Setter
@TableName("dragon_rejected_product")
public class RejectedProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 退货的产品id
     */
    private Integer productId;

    /**
     * 退货主表id
     */
    private Integer rejectedId;

    /**
     * 退货数量
     */
    private Integer recededNum;

    /**
     * 已处理的数量
     */
    private Integer handleNum;

    /**
     * 增在处理的数量
     */
    private Integer processingNum;

    /**
     * 送货数量
     */
    private Integer deliverNum;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 规格型号
     */
    @TableField(exist = false)
    private String specification;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String unitName;


    /**
     * 材质
     */
    @TableField(exist = false)
    private String material;

    /**
     * 备注
     */
    @TableField(exist = false)
    private String remark;

    /**
     * 合同数量
     */
    @TableField(exist = false)
    private Integer contractNum;


    /**
     * 产品名称
     */
    @TableField(exist = false)
    private String name;


}
